package com.sf.utils;

import com.sf.config.AppConfig;



public class UtilsLog {
	// 封装logcat类，方便控制日志打印
	public static boolean IsTest = AppConfig.IsTest;

	private UtilsLog() {

	}

	public static void d(String key, String value) {
		if (IsTest) {
			android.util.Log.d(key, value);
		}
	}

	public static void i(String key, String value) {
		if (IsTest) {
			android.util.Log.i(key, value);
		}
	}

	public static void e(String key, String value) {
		if (IsTest) {
			android.util.Log.e(key, value);
		}
	}

	public static void w(String key, String value) {
		if (IsTest) {
			android.util.Log.w(key, value);
		}
	}

	public static void w(String key, Throwable tr) {
		if (IsTest) {
			android.util.Log.w(key, tr);
		}
	}
}
